#include <stdio.h>

//https://www.nowcoder.com/practice/804a22929b844e6b9379a5e90b5e2197?tpId=290&tags=&title=&difficulty=0&judgeStatus=0&rp=0&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D290

int main() {
    int num = 0;
    while(~scanf("%d", &num)) {
        for (int i = 1; i <= num; i++) {
            for (int j = 1; j <= i; j++) {
                printf("%d ", j);
            }
            printf("\n");
        }
    }
    return 0;
}